var r = require("../../config/config.js"), e = require("../../uni_modules/u-store/js_sdk/Storage.js"), i = {
    namespaced: !0,
    state: function() {
        return {
            carInfo: e.Storage.get("carInfo") || {
                brand_id: 0,
                brand_name: "",
                brand_titlepic: "/static/img/circle.jpg",
                firms_id: 0,
                firms_name: "",
                series_id: 0,
                series_name: "请选择绑定车型！"
            }
        };
    },
    mutations: {
        upInfo: function(i, a) {
            var s = a.brand_id, n = {
                brand_id: s,
                brand_name: a.brand_name,
                brand_titlepic: r.base.siteUrl + "/uploads/car/brand/" + s + ".png",
                firms_id: a.firms_id,
                firms_name: a.firms_name,
                series_id: a.series_id,
                series_name: a.title
            };
            i.carInfo = n, e.Storage.set("carInfo", n);
        }
    }
};

exports.showCar = i;